<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>首页</h2>

<table border="1" id="xinxi">
    <tr>
        <td>id</td>
        <td>编号</td>
        <td>姓名</td>
    </tr>

</table>


</body>
<script src="/jquery-1.12.4.min.js">
</script>
<script>
    $(function () {

        // $.post("/user/loginUser",null,function(res){
        //
        //     alert(res);
        //
        // },json);


        $.ajax({
            url: "/user/findList",
            data: null,
            dataType: "json",
            type: "post",
            success: function (result) {


                $.each(result.data, function (K, V) {


                    $("#xinxi").append("<tr><td>" + V.id + "</td><td>" + V.userName + "</td><td>" + V.password + "</td></tr>");


                })
            },
        })
    })

</script>


</html>